#include "sise.h"
#include "sise_packer.h"

#include <stdio.h>

int main(int argc, char* argv[])
{
	const int BUF_SIZE = 100;
	char *hex1 = "124D0C1476A941C179D274E7";
	char bin1[BUF_SIZE];
	char bin2[BUF_SIZE];
	char hex2[BUF_SIZE];
	short s1, s2;
	float f1, f2;
	int i1, i2;
	double d1, d2;
	
	sise_nullify(hex2, BUF_SIZE);
	sise_nullify(bin1, BUF_SIZE);
	sise_nullify(bin2, BUF_SIZE);
	
	printf("sise_hex2bin(hex1, bin1, 10) = %d\n", sise_hex2bin(hex1, bin1, 10));
	printf("hex1 = %s\n", hex1);
	printf("bin1 = %s\n", bin1);
	
	printf("sise_bin2hex(hex2, bin1, 10) = %d\n", sise_bin2hex(hex2, bin1, 10));
	printf("hex1 = %s\n", hex1);
	printf("hex2 = %s\n", hex2);
	printf("bin1 = %s\n", bin1);
	
	printf("sise_hex2bin_auto(hex2, bin2, 10) = %d\n", sise_hex2bin_auto(hex2, bin2, 10));
	printf("hex2 = %s\n", hex2);
	printf("bin2 = %s\n", bin2);
	printf("bin1 = %s\n", bin1);
	
	return 0;
}
